package cn.com.api.service;

import java.util.List;
import java.util.Map;

import org.springframework.stereotype.Service;

import cn.com.api.entity.ApiU_match;
import cn.com.api.entity.ApiU_match_prize;
import cn.com.api.entity.ApiU_match_works;
import cn.com.api.service.base.U_matchServiceBase;

/**
 * 
 */
@Service
public interface ApiU_matchService extends U_matchServiceBase {

	// 新增对象后返回记录ID
	public int U_matchInsertion(ApiU_match u_match);

	// 新增发布赛事信息
	public int U_matchInfoInsertion(ApiU_match u_match, List<ApiU_match_prize> u_match_prize);

	// 编辑发布赛事信息
	public int updateU_match_info(ApiU_match u_match, List<ApiU_match_prize> list_prize) throws Exception;

	// 查看数据集
	public List<ApiU_match> findU_matchs_condition(Map<String, Object> param) throws Exception;
	
	//查看我的赛事
	public List<ApiU_match> findU_matchs_main(Map<String, Object> param) throws Exception;
	
	public List<ApiU_match> findU_matchs_award(Map<String, Object> param) throws Exception;
	
	public List<ApiU_match> findU_matchs_vote(Map<String, Object> param) throws Exception;
	

	// 查看报名中的数据集
	public List<ApiU_match> findU_matchs_enroll_condition(Map<String, Object> param) throws Exception;

	// 查看头皮针的数据集
	public List<ApiU_match> findU_matchs_vote_condition(Map<String, Object> param) throws Exception;

	// 查看结束后的数据集
	public List<ApiU_match> findU_matchs_end_condition(Map<String, Object> param) throws Exception;

	public List<ApiU_match> findU_api_matchs_join(Map<String, Object> params) throws Exception;

	public List<ApiU_match> findU_api_matchs_nominate(Map<String, Object> params) throws Exception;

	public List<ApiU_match> findU_matchsByMatchName(Map<String, Object> params) throws Exception;

	public List<ApiU_match> findU_api_matchs_vote(Map<String, Object> params) throws Exception;

	public int findU_enroll_status(Map<String, Object> params) throws Exception;

	public int findU_vote_status(Map<String, Object> params) throws Exception;

	public Map<String, Object> findU_api_matchs_prizeInfo(String match_id) throws Exception;

	public int findU_api_matchs_votenum(String match_id) throws Exception;

	public int findU_api_matchs_worksnum(String match_id) throws Exception;

	public void tongJiMatch() throws Exception;
	
	public List<ApiU_match> findU_api_matchs_win(
			Map<String, Object> params)throws Exception;

	public List<Map<String, Object>> findU_match_great(
			Map<String, Object> params)throws Exception;
}
